<%= stylesheet_link_tag "easyslider.css" %>
<%= javascript_include_tag "easyslider.js" %>
<script type="text/javascript">
	$(document).ready(function(){	
		$("#slider").easySlider({
			auto: true, 
			continuous: true,
			numeric: true,
			loop: true,
			autoplayDuration: 0,
      speed: 800,
      pause: 5000
		});
	});	
</script>



	<div class="body2">
		 <div class="body3">
			 <div class="container_12">
			 	 <div class="wrapper">
						<div class="grid_12">
	 						祝贺心嘉源企业网站新版上线测试，目前内容正在完善中，欢迎您对网站建设提出宝贵意见。 
						</div>
					</div>
				</div>
			</div>

		<div class="container_12">
			<section id="content">
				<div class="wrapper">
					<% Front.all.group_by{|t| t.id%2 }.each do |id, arr| %>
						<div class="grid_6">
							<% arr.each do |front| %>
							  <div class="wrapper pad_bot1">
							    <div class="left marg_right1">
								  	<%= link_to image_tag(front.icon.url), front_path(front), :title => front.title  %>
							    </div>
							    <span class="font-first"><%= link_to front.title, front_path(front), :title => front.title %></span>
							    <p>
                    <%= truncate(front.desc.strip, :length => 40, :omission => link_to('[更多]', front_path(front))) %>
							    </p>	
						    </div>	
						<% end %>
						</div>
					<% end %>
				</div>
				<div class="wrapper marg_top1">
					<div class="grid_12">
							<div class="box1">
								<div class="pad">
                  <h2 class="left">专题专栏</h2>
								</div>
							</div>
					</div>
				</div>

				<div class="wrapper">
					 <div class="grid_8">
					 	 <h2 class="title3">新闻中心</h2>
							<% @news.each_with_index do |news, index| %>
							<div class="under">
								<span class="dropcap_1"><span><%= index+1 %></span></span>
								<p><strong style="font-size:18px">
									<%= link_to news.title, news_path(news), :title => news.title %>
									</strong><br/>
								<%= news.content.bbcode_to_html.gsub(%r{</?[^>]+?>}, '').scan(/./)[0, 50].join('') %>
								</p>
							</div>
							<% end %>
					 </div>

					 <div class="grid_4">
							<h2></h2>
							<div class="wrapper pad_bot1">
								<div class="left marg_right1">
                  <%= link_to image_tag("aixin.png"), "http://www.iyaoi.com", :alt => "爱心网" %>
                </div>
							</div>	
	
							<div class="wrapper pad_bot1">
								<div class="left marg_right1">
                  <%= link_to image_tag("plantform.png"), :controller => :surveys, :action => :index, :popup => true %>
                </div>
							</div>	
					 </div>

				</div>
			</section>
		</div>
</div>
